PROTO Sony_BindSharedNode [ field SFNode transformNode NULL field SFNode scriptNode NULL ] { }There are several rules for the use of this node:
Sony_BindSharedNode
can
appear in the definition of the body.
This rule is important in the following example:
PROTO TEST1 [] { DEF TEST1_OBJ Transform { children [ DEF TEST1_SCRIPT Script { ... } Sony_BindSharedNode { transformNode USE TEST1_OBJ scriptNode USE TEST1_SCRIPT ] } } } DEF TEST1_INSTANCE TEST1{} DEF NEW_SCRIPT Script{ ... } Sony_BindSharedNode { transformNode TEST1_INSTANCE scriptNode NEW_SCRIPT }In this example,
TEST1_INSTANCE
is bound twice:
once inside the PROTO body, and at the last of the code.
Even in this case the rule applies and the first binding
(inside proto) will win.